package cn.iocoder.yudao.module.mqtt.controller.admin.config.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - MQTT配置分页 Request VO")
@Data
public class ConfigPageReqVO extends PageParam {

    @Schema(description = "MQTT配置名称", example = "张三")
    private String name;

    @Schema(description = "用户名", example = "王五")
    private String username;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "MQTT服务器地址", example = "https://www.iocoder.cn")
    private String url;

    @Schema(description = "订阅客户端ID", example = "2315")
    private String subClientId;

    @Schema(description = "订阅主题，多个主题用逗号分隔")
    private String subTopics;

    @Schema(description = "发布客户端ID", example = "18921")
    private String pubClientId;

    @Schema(description = "0 离线 1 在线")
    private String isOnline;

    @Schema(description = "是否启用：0-禁用，1-启用", example = "mqtt")
    private Boolean enabled;

    @Schema(description = "描述", example = "你猜")
    private String description;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}